package com.qitianyong.extendUI;

import android.view.View;
import android.view.ViewGroup;

import java.util.List;

/**
 * Created by qitianyong on 2017/3/2. 仿BaseAdapter
 */

public class CircleAdapter {

    private List __list;

    public CircleAdapter(List list) {
        __list = list;
    }

    public int getCount() {

        return __list.size();
    }

    public Object getItem(int position) {

        return __list.get(position);
    }

    public long getItemId(int position) {

        return position;
    }

    public View getView(int position, View convertView, ViewGroup parent) {

        if(convertView == null){
            convertView = (View)getItem(position);
        }

        return convertView;
    }
}
